#include "../../muduo_source/server.hpp"

int main()
{
    Socket cli;
    cli.CreateClient(8085,"127.0.0.1"); // 本地回环网卡
    int i = 0;
    while(i++ < 10)
    {
        std::string str = "hello bite!";
        cli.Send(str.c_str(),str.size());
        DEBUG_LOG("cli Send a message : %s",str.c_str());
        
        char buf[1024];
        int ret = cli.Recv(buf,sizeof(buf));

        DEBUG_LOG("cli get a message : %s",buf);
        sleep(1);
    }
    while(1) sleep(1);
    //cli.Close();
    return 0;
}
